namespace Aurora.RabbitMq.Attributes;

/// <summary>
/// 定义队列名字，优先级高于 类完整名
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class QueueNameAttribute : Attribute
{
    public string QueueName { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="queueName"></param>
    public QueueNameAttribute(string queueName)
    {
        QueueName = queueName;
    }
}